package base.day12;

import java.util.Scanner;

public class ReverseString {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入");
        String s=sc.nextLine();
        StringBuilder sb=new StringBuilder(s);
        String str = sb.reverse().toString();
        if (s.equals(str)){
            System.out.println("是对称的");
        }else{
            System.out.println("不是对称的");
        }
    }
}
